AutomaticClientResetStrategy

interface AutomaticClientResetStrategy : SyncClientResetStrategy

Interface that defines an automatic sync client reset strategy, it could be either DiscardUnsyncedChangesStrategy, RecoverOrDiscardUnsyncedChangesStrategy or RecoverUnsyncedChangesStrategy.

Functions

onBeforeReset
Link copied to clipboard
abstract fun onBeforeReset(realm: TypedRealm)
Callback that indicates a Client Reset is about to happen.
onManualResetFallback
Link copied to clipboard
abstract fun onManualResetFallback(session: SyncSession, exception: ClientResetRequiredException)
Callback that indicates the Client reset failed to complete.

Inheritors

DiscardUnsyncedChangesStrategy
Link copied to clipboard
RecoverUnsyncedChangesStrategy
Link copied to clipboard
RecoverOrDiscardUnsyncedChangesStrategy
Link copied to clipboard